package com.soft.line.service;

import com.github.pagehelper.PageInfo;
import com.soft.line.entity.ButtonInfo;
import com.soft.line.entity.MenuButtonInfo;
import com.soft.line.entity.MenuInfo;

import java.util.List;
import java.util.Map;

public interface MenuInfoService {

    public PageInfo<MenuInfo> selectAll(final Map<String,Object> map);

    public List<ButtonInfo> selectButtonsByMenuId(Integer menuId);

    public MenuInfo selectByPrimaryKey(Integer id);

    public MenuInfo selectParentMenu(Integer pid);

    public int countMenuName(Integer id,String menuName);

    public int countOrderBy(Integer id,String orderBy);

    public List<String> selectALlMenuName();

    public void addMenuInfo(MenuInfo menuInfo);

    public void updateMenInfo(MenuInfo menuInfo);

    public void delete(Integer id);

    public List<MenuInfo> selectTopMenu();

    //获取所有有操作按钮的菜单
    public List<MenuInfo> selectSonMenus();
}
